package yf.mall.enums;

import lombok.Getter;
import java.util.Arrays;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 10:29:43 CST 2020
 */
@Getter
public enum LotteryActStatusEnum {


                   CLOSE(0,"关闭")
                                    ,
                
            
                   OPEN(1,"开始")
                
                                ;
            
        
        int index;
        String value;

    public static String[] names(){
        return Arrays.stream(LotteryActStatusEnum.values()).map(m->m.getValue()).toArray(String[]::new);
    }

    LotteryActStatusEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return LotteryActStatusEnum.values()[idx].getValue();
    }

}
